﻿using SqlSugar;

namespace WPFNote.Models
{
    public class Category : BaseEntity
    {
        /// <summary>
        /// 分类
        /// </summary>
        [SugarColumn(ColumnDataType = "nvarchar(32)")]
        public string Title { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 分类ID
        /// </summary>
        public Enum.ContentType TypeId { get; set; }
        /// <summary>
        /// Users
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Users Users { get; set; }
        /// <summary>
        /// 博客数量
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int BlogNum { get; set; }
        /// <summary>
        /// 笔记数量
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int NoteNum { get; set; }
    }
}